package com.hurl.library.schedule;

/**
 * 调度器类，用来管理计划任务。
 * @author hurl
 *
 */
public interface Scheduler {
	/**
	 * 启动调度器
	 * @throws ScheduleException
	 */
	public void start() throws ScheduleException;
	public void shutdown();
	public void setTrigger(JobTrigger trigger);
	public void addJob(Job job)throws ScheduleException;
	public void addJob(Job job, boolean disabled)throws ScheduleException;
	public void removeJob(Job job)throws ScheduleException;
}
